{% extends "tpl_admin_base.html" %}
{% block slides %}
<div id="slogancontainer" class="slides">
 	<img src="/static/images/slogan_3.png" alt="{{specialtitle}}" class="left" />
 </div>
{% endblock %}
{% block nodecontent %}
<div class="content">
	{% ifnotequal success None %}
	<div class="resultmsg">{% if success %}更新成功{% else %}更新失败，请重试{% endif %}</div>
	{% endifnotequal %}
     <div class="list">
     	<h2>当前{{specialtitle}}列表:</h2>
     	{% ifnotequal items None %}
     	<ul>
     	{% for item in items %}
     		<li>{{item.title}}
     			<div class="entry-cmd">
     				<a href="/admin/kb?key={{item.key|escape}}&action=edit">编辑</a>/
     				<a href="javascript:confirmDelete('/admin/kb?key={{item.key|escape}}&action=delete')">删除</a>
     			</div>
     		</li>
     	{% endfor %}
     	</ul>
     	{% endifnotequal %}
     </div>
     <div class="buttoncontainer"><a href="/admin/kb?action=new" class="button"><span>添加新{{specialtitle}}</span></a>
</div>
{% endblock %}